#pragma once
#include <string>
#include "InputSource.h"
#include "decoder/VDecoder.h"

namespace Media{

    class StreamPullerInputSource:public InputSource{
    public:
        using Ptr = std::shared_ptr<StreamPullerInputSource>;
        StreamPullerInputSource(SourceMediaType mType, const std::string& url);
        ~StreamPullerInputSource() override;
    protected:
        bool OpenSource() override;
        bool CloseSource() override;
    private:
        std::string m_url;
        FrameCommon::StreamPlayer::Ptr m_rtspPlayer;
    };


}